// 路由存储
import { defineStore } from 'pinia'
import { ref } from 'vue'

export const useRoutesStore = defineStore('routes', () => {
  const routesList = ref<Array<Object>>([])

  const setRoutesList = (data: Array<Object>) => {
    routesList.value = data
  }

  return {
    routesList,
    setRoutesList
  }
})